<?php
declare (strict_types=1);

namespace app\common\model;

class Documentation extends Base
{
    protected $name = 'documentation';


    public function getTypeAttr($value)
    {
        switch ($value) {
            case 1:
                return '图片';
            case 2:
                return '视频';
            default:
                return '新闻';
        }
    }
}
